package com.scorpio.sdk.service;

import com.alibaba.fastjson.JSONObject;
import com.scorpio.sdk.dto.WxUserDTO;

import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

public interface WeiXinService {

    //获取小程序
    String getWxMiniOpenId(String code);

    //获取公众号帐号token
    String getAccessToken();

    //获取jsapi_ticket
    String getJsapiTicket();

    //获取签名
    Map getSigntrue(String url) throws NoSuchAlgorithmException;

    //发送消息到微信
    void sendMsgToWeixin( String templateId, String toUserOpenId, JSONObject data);

    //获取关注微信公众号的用户
    List<WxUserDTO> findUserList(String nextOpenid);

}
